***JOP Kane, Mason, and Wronski****
* Main Text Experiment Replications *


*********************TABLE 2.  Group-Party Associations & Partisanship (MTurk Studies)************
****Also Table G1. Effects of Negative Group-Party Association on Partisanship 

************************************
*MTurk Study 1 (Table 2. columns 1 through 4)
************************************

use "JOP_KMW_MTurk_Experiment1.dta"

*Regression Models

	*Independents
		*DV=Democratic Feeling Thermometer
reg  DemPartyFT DemTreat pid ideo polint if Independent_wleaners ==1
		*DV=Republican Feeling Thermometer 
reg  RepPartyFT RepTreat pid ideo polint if Independent_wleaners ==1
		*Democrats; DV=Partisan Identity
reg  DemIDstrength01  RepTreat pid ideo polint if Democrat_noleans==1
		*Republicans; DV=Partisan Identity
reg  RepIDstrength01  DemTreat pid ideo polint if Republican_noleans==1 

*********************TABLE G2. Effects of Negative Group-Party Association on Partisanship (Aggregated)************

*Single model with all partisans (not disaggregated by party) -- column 1
reg identityDV exptreatment pid ideo polint

*********************TABLE G3.  Manipulation Check Results (MTurk Studies 1 & 2)************
*Manipulation Checks

	*Independents
		*Negative Group-Republican Party Association 
ologit  whitepowMC  RepTreat if  Independent_wleaners ==1 
		*Negative Group-Democratic Party Association 
ologit  envMC  DemTreat if  Independent_wleaners ==1

	*Democrats
ologit  whitepowMC  RepTreat if  Democrat_noleans==1

	*Republicans
ologit  envMC  DemTreat if  Republican_noleans==1 


********************************
*MTurk Study 2 (columns 5 and 6)
********************************

use "JOP_KMW_MTurk_Experiment2.dta""

*Regression Models
	*Democrats; DV=Partisan Identity
reg DemIdentity01_app WNA_treat pid ideo polint if pid==1 | pid==2 
	*Republicans; DV=Partisan Identity
reg RepIdentity01_app MAA_treat pid ideo polint if pid==6 | pid==7 

*********************TABLE G2. Effects of Negative Group-Party Association on Partisanship (Aggregated)************

*Single model with all partisans (not disaggregated by party) -- column 2
reg identityDV i.exptreatment pid ideo polint 


*********************TABLE G3.  Manipulation Check Results (MTurk Studies 1 & 2)************
*Manipulation Checks

	*Democrats
ologit whitepowMC WNA_treat if pid==1 | pid==2

	*Republicans
ologit atheistMC MAA_treat if pid==6 | pid==7 

**********************
